function val = ValueFunction (bw, p4)
